package com.java.loginsso.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.java.loginsso.pojo.User;
import com.java.service.BaseService;

/**
 * @ClassName UserService
 * @Description 用户前台操作
 * @Author Trigger Wu
 * @Date 2018/9/1910:34
 * @Version 1.0
 **/
public interface UserService extends BaseService<User> {
    //检查用户注册信息
    Boolean check(String param, Integer type);
    //注册
    Boolean doRegister(User user);
    //登录操作
    String doLogin(String username, String password) throws JsonProcessingException;

    //从缓存中读取用户信息
    User queryUserByToken(String token);
}
